﻿using System;
using Abp.Domain.Entities.Auditing;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using FwProject.Core.Restaurant;
using FwProject.Core.Distribution;
using FwProject.Core.FactoryInfo;
using Abp.AutoMapper;
using System.Collections.Generic;
using Abp.Domain.Entities;

namespace FwProject.Distribution.Dto
{
    [AutoMap(typeof(DistributionInfo))]
    public class DistributionInpuDto
    {
        /// <summary>
        /// 餐厅编号
        /// </summary>
        /// <value>The restaurantid.</value>
        [Required]
        [Display(Name ="餐厅编号")]
        public Guid  Restaurantid { get; set; }    
      
        /// <summary>
        /// 汽车编号
        /// </summary>
        /// <value>The carinfoid.</value>
        [Required]
        [Display(Name = "汽车编号")]
        public Guid  Carinfoid{ get; set; }

        [Display(Name ="配送单号")]
        public string CreationNumber { get; set; }
        /// <summary>
        /// 配送日期
        /// </summary>
        public DateTime CreationTime { get; set; }
        /// <summary>
        /// 支付状态
        /// </summary>
        /// <value>The pricestatus.</value>
        [Required]
        [Display(Name = "支付状态")]
        public Pricestatus Pricestatus { get; set; } = Pricestatus.未结账;
        /// <summary>
        /// 应支付金额
        /// </summary>
        /// <value>The price.</value>
        [Required]
        [Display(Name = "应支付金额")]
        public decimal TotalPrice { get; set; } = 0;

        /// <summary>
        /// 上一次店存配送情况
        /// </summary>
        public int Stock { get; set; } = 0;

        public int DistributionStock { get; set; }= 0;
        /// <summary>
        /// 装车汽车
        /// </summary>
        /// <value>The load car identifier.</value>
        [Required]
        [Display(Name = "装车汽车")]
        public Guid  LoadCarId{ get; set; }


        /// <summary>
        /// 结账编码
        /// </summary>
        /// <value>The prices identifier.</value>
        [Display(Name ="结账编码")]
        public Guid? SettlementId { get; set; }
        public long? CreatorUserId { get; set; }
        public List<DistributionDetailsInputDto> DetailsInputDtos { get; set; }
    }
   
}
